package cn.dai.exception;

import cn.dai.pojo.ReturnCode;

/**
 * @author daijiyong
 */
public class ResponseException extends Exception {
    static final long serialVersionUID = 1L;
    private final String status;

    public ResponseException(String status) {
        super();
        this.status = status;
    }

    public ResponseException(String message, String status) {
        super(message);
        this.status = status;
    }

    public ResponseException(ReturnCode returnCode) {
        super(returnCode.getMessage());
        this.status = returnCode.getStatus();
    }


    public String getStatus() {
        return status;
    }
}
